/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import slcu.model.NotificacionRechazo;

/**
 * The persistence interface for the NotificacionRechazo service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see NotificacionRechazoPersistenceImpl
 * @see NotificacionRechazoUtil
 * @generated
 */
public interface NotificacionRechazoPersistence extends BasePersistence<NotificacionRechazo> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link NotificacionRechazoUtil} to access the NotificacionRechazo persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the NotificacionRechazo in the entity cache if it is enabled.
	*
	* @param notificacionRechazo the NotificacionRechazo
	*/
	public void cacheResult(slcu.model.NotificacionRechazo notificacionRechazo);

	/**
	* Caches the NotificacionRechazos in the entity cache if it is enabled.
	*
	* @param notificacionRechazos the NotificacionRechazos
	*/
	public void cacheResult(
		java.util.List<slcu.model.NotificacionRechazo> notificacionRechazos);

	/**
	* Creates a new NotificacionRechazo with the primary key. Does not add the NotificacionRechazo to the database.
	*
	* @param notificacionId the primary key for the new NotificacionRechazo
	* @return the new NotificacionRechazo
	*/
	public slcu.model.NotificacionRechazo create(long notificacionId);

	/**
	* Removes the NotificacionRechazo with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param notificacionId the primary key of the NotificacionRechazo
	* @return the NotificacionRechazo that was removed
	* @throws slcu.NoSuchNotificacionRechazoException if a NotificacionRechazo with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo remove(long notificacionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchNotificacionRechazoException;

	public slcu.model.NotificacionRechazo updateImpl(
		slcu.model.NotificacionRechazo notificacionRechazo, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the NotificacionRechazo with the primary key or throws a {@link slcu.NoSuchNotificacionRechazoException} if it could not be found.
	*
	* @param notificacionId the primary key of the NotificacionRechazo
	* @return the NotificacionRechazo
	* @throws slcu.NoSuchNotificacionRechazoException if a NotificacionRechazo with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo findByPrimaryKey(long notificacionId)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchNotificacionRechazoException;

	/**
	* Returns the NotificacionRechazo with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param notificacionId the primary key of the NotificacionRechazo
	* @return the NotificacionRechazo, or <code>null</code> if a NotificacionRechazo with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo fetchByPrimaryKey(long notificacionId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the NotificacionRechazos where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @return the matching NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findBysuscriptor(
		long suscriptorUserId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the NotificacionRechazos where suscriptorUserId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param start the lower bound of the range of NotificacionRechazos
	* @param end the upper bound of the range of NotificacionRechazos (not inclusive)
	* @return the range of matching NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findBysuscriptor(
		long suscriptorUserId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the NotificacionRechazos where suscriptorUserId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param start the lower bound of the range of NotificacionRechazos
	* @param end the upper bound of the range of NotificacionRechazos (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findBysuscriptor(
		long suscriptorUserId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first NotificacionRechazo in the ordered set where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching NotificacionRechazo
	* @throws slcu.NoSuchNotificacionRechazoException if a matching NotificacionRechazo could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo findBysuscriptor_First(
		long suscriptorUserId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchNotificacionRechazoException;

	/**
	* Returns the first NotificacionRechazo in the ordered set where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching NotificacionRechazo, or <code>null</code> if a matching NotificacionRechazo could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo fetchBysuscriptor_First(
		long suscriptorUserId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last NotificacionRechazo in the ordered set where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching NotificacionRechazo
	* @throws slcu.NoSuchNotificacionRechazoException if a matching NotificacionRechazo could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo findBysuscriptor_Last(
		long suscriptorUserId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchNotificacionRechazoException;

	/**
	* Returns the last NotificacionRechazo in the ordered set where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching NotificacionRechazo, or <code>null</code> if a matching NotificacionRechazo could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo fetchBysuscriptor_Last(
		long suscriptorUserId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the NotificacionRechazos before and after the current NotificacionRechazo in the ordered set where suscriptorUserId = &#63;.
	*
	* @param notificacionId the primary key of the current NotificacionRechazo
	* @param suscriptorUserId the suscriptor user ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next NotificacionRechazo
	* @throws slcu.NoSuchNotificacionRechazoException if a NotificacionRechazo with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public slcu.model.NotificacionRechazo[] findBysuscriptor_PrevAndNext(
		long notificacionId, long suscriptorUserId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			slcu.NoSuchNotificacionRechazoException;

	/**
	* Returns all the NotificacionRechazos.
	*
	* @return the NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the NotificacionRechazos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of NotificacionRechazos
	* @param end the upper bound of the range of NotificacionRechazos (not inclusive)
	* @return the range of NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the NotificacionRechazos.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of NotificacionRechazos
	* @param end the upper bound of the range of NotificacionRechazos (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<slcu.model.NotificacionRechazo> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the NotificacionRechazos where suscriptorUserId = &#63; from the database.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @throws SystemException if a system exception occurred
	*/
	public void removeBysuscriptor(long suscriptorUserId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the NotificacionRechazos from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of NotificacionRechazos where suscriptorUserId = &#63;.
	*
	* @param suscriptorUserId the suscriptor user ID
	* @return the number of matching NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public int countBysuscriptor(long suscriptorUserId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of NotificacionRechazos.
	*
	* @return the number of NotificacionRechazos
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}